import request from '@/utils/request'

// 盲盒列表
export async function GetBoxPage(params) {
  const res = await request({
    url: '/Box/GetBoxPage',
    method: 'post',
    params
  })
  return res
}

// 新增编辑盲盒
export async function BoxEdit(data) {
  const res = await request({
    url: '/Box/BoxEdit',
    method: 'post',
    data
  })
  return res
}

// 盲盒上下架
export async function BoxGoodsState(params) {
  const res = await request({
    url: '/Box/BoxGoodsState',
    method: 'post',
    params
  })
  return res
}

// 盲盒详情
export async function GetBoxIndex(params) {
  const res = await request({
    url: '/Box/GetBoxIndex',
    method: 'post',
    params
  })
  return res
}

// 盲盒奖品列表
export async function GetBoxattrpage(params) {
  const res = await request({
    url: '/Box/GetBoxattrpage',
    method: 'post',
    params
  })
  return res
}

// 新增编辑奖品
export async function BoxGoosAttr(data) {
  const res = await request({
    url: '/Box/BoxGoosAttr',
    method: 'post',
    data
  })
  return res
}

// 奖品启用\禁用
export async function BoxGoodsAttrState(params) {
  const res = await request({
    url: '/Box/BoxGoodsAttrState',
    method: 'post',
    params
  })
  return res
}
